#pragma once

#include <atlddx.h>
#include <atlcrack.h>

#include "resource.h"


class COperationConfigDlg : public CDialogImpl<COperationConfigDlg>,
	public CWinDataExchange<COperationConfigDlg>
{
public:
	COperationConfigDlg(void);
	~COperationConfigDlg(void);

	enum { IDD = IDD_DLG_ROOM_CLOSE };

	BEGIN_MSG_MAP(COperationConfigDlg)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_ID_HANDLER(IDOK, OnCloseCmd)
		COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd)
		COMMAND_HANDLER_EX(IDC_BTN_CANCEL, BN_CLICKED, OnBtnCancelBnClicked)
		COMMAND_HANDLER_EX(IDC_BTN_OK, BN_CLICKED, OnBtnOkBnClicked)
	//	COMMAND_HANDLER_EX(IDC_CHECK2, BN_CLICKED, OnBtnOkBnClicked)
		COMMAND_HANDLER(IDC_CHECK2, BN_CLICKED, OnBnClickedCheck2)
	END_MSG_MAP()


protected:

	CButton  check1;
	CButton  check2;
	CButton  check3;
	CButton  check4;
	CButton  check5;
	

public:

	LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);

	LRESULT OnBtnCancelBnClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl);
	LRESULT OnBtnOkBnClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl);


	LRESULT OnBtnPowerOffBnClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl);

	int ResetDlgText(void);
	LRESULT OnBnClickedCheck2(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
};
